package com.itcanteen.medical.patient.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 新闻
 * @author 1804A-TeamOne
 * @date 2020-12-17 16:09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "information")
public class Information extends BaseEntity {

    /**
     标题
     */
    @Column(name = "title", nullable = false)
    private String title;

    /**
     内容
     */
    @Column(name = "center", nullable = false)
    private String center;

    /**
     点击量
     */
    @Column(name = "clicker", nullable = false)
    private Integer clicker;

    @Column(name = "type_id",nullable = false)
    private Long typeId;


}
